<%@ page language="java" import="java.sql.*, java.io.*, java.util.*, java.awt.*, javax.swing.*" %>
<%@page import="util.*, beans.*"%>
<html><head>
</head>
<title>Information Updated</title>
    <body>
        <%
           String id = (String)session.getValue("username");
           
            String firstname = request.getParameter("firstname");
            String lastname = request.getParameter("lastname");
            String age = request.getParameter("age");
            String gender = request.getParameter("gender");
            String interest = request.getParameter("interest");
            String country = request.getParameter("country");
            String zipcode = request.getParameter("zipcode");
            String address = request.getParameter("address");
            String email = request.getParameter("email");
            String password = request.getParameter("password");
            boolean succeed = MemberBean.updateMemberInfo(id, firstname, lastname, age, gender, interest, country, zipcode, address, email, password);
            if (succeed) {
                response.sendRedirect("UpdateInfoSuccess.jsp");
            }else {
                response.sendRedirect("UpdateInfoFail.jsp");
            }
        %>
        
    </body>
</html>		